package com.zjitc.model;

/**
 * Create by IntelliJ IDEA
 *
 * @author: lhl
 * @date-Time: 2018/4/6 0006
 * @description:
 */
public class OrderItem {

    private String itemId;
    private Integer count;
    private Double subTotal;
    private String pid;
    private String oid;
    private Product product;

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public OrderItem() {
    }

    public OrderItem(String itemId, Integer count, Double subTotal) {
        this.itemId = itemId;
        this.count = count;
        this.subTotal = subTotal;

    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Double getSubTotal() {
        return subTotal;
    }

    public void setSubTotal(Double subTotal) {
        this.subTotal = subTotal;
    }

    @Override
    public String toString() {
        return "OrderItem{" +
                "itemId='" + itemId + '\'' +
                ", count=" + count +
                ", subTotal=" + subTotal +
                '}';
    }
}
